package miejuli;

import java.io.IOException;
import java.net.URISyntaxException;

/**
 * Created by Administrator on 2017/5/25.
 */
public class Index {

    public static void main(String[] arg) throws IOException, URISyntaxException, InterruptedException {
        MeiJuLiApi meijuli=new MeiJuLiApi();
        //meijuli.login();
        int count=100;
        for(int i=0;i<count;i++){
            try {
                int codeStatus1=1;
                int codeStatus2=1;
                int codeCount1=0;
                int codeCount2=0;
                meijuli.getPhone();
                meijuli.sendMesasge();
                while (codeStatus1==1){
                    if(codeCount1==3){
                        break;
                    }
                    codeStatus1=meijuli.getMessage();
                    if(codeStatus1==1){
                        meijuli.sendMesasge();
                    }
                    codeCount1++;
                }
                meijuli.regist();
                meijuli.loginYangmao();
                meijuli.getSms();
                while (codeStatus2==1){
                    if(codeCount2==3){
                        break;
                    }
                    codeStatus2=meijuli.getMessage();
                    if(codeStatus2==1){
                        meijuli.getSms();
                    }
                    codeCount2++;
                }
                meijuli.userPayPwd();
                meijuli.releasePhone();
                meijuli.writeFile();
            }catch (Exception e){
                continue;
            }
        }
    }
}
